package com.nanjia.boot.batch_stock.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.nanjia.boot.batch_stock.model.entity.WarehouseBatchStock;
import com.nanjia.boot.batch_stock.model.query.WarehouseBatchStockQuery;
import com.nanjia.boot.batch_stock.model.vo.WarehouseBatchStockVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 库存记录Mapper接口
 *
 * @author 周洋
 * @since 2025-08-22 11:27
 */
@Mapper
public interface WarehouseBatchStockMapper extends BaseMapper<WarehouseBatchStock> {

    /**
     * 获取库存记录分页数据
     *
     * @param page 分页对象
     * @param queryParams 查询参数
     * @return {@link Page<WarehouseBatchStockVO>} 库存记录分页列表
     */
    Page<WarehouseBatchStockVO> getWarehouseBatchStockPage(Page<WarehouseBatchStockVO> page, WarehouseBatchStockQuery queryParams);

    List<WarehouseBatchStockVO> getList(@Param("queryParams") WarehouseBatchStockQuery queryParams);
}
